Lines Matching refs:Flag
15 from flags import Flag
23 """This class tests the Flag class."""
38 test_flag = Flag(spec)
57 assert Flag(str(test), test) == Flag(str(test), test)
61 flag = Flag(str(test), test)
64 assert flag != Flag(str(other_test), other_test)
79 test_flag = Flag(spec, value)
91 test_flag = Flag('flag', value)
114 assert FlagSet([Flag(spec)]) == FlagSet([Flag(spec)])
119 flag_set = FlagSet([Flag(spec)])
123 assert flag_set != FlagSet([Flag(other_spec)])
135 flag_array = [Flag(spec) for spec in specs]
158 flag_set = FlagSet([Flag(spec) for spec in specs])
180 flags.append(Flag(spec))