+
+
+class TestParseBits(TestCase):
+ def test_parse_bits(self):
+ self.assertEqual(parse_bits([]), frozenset([]))
+ self.assertEqual(parse_bits(['RED']), frozenset([BITS.RED]))
+ self.assertEqual(parse_bits([BITS.BLUE]), frozenset([BITS.BLUE]))
+ self.assertEqual(
+ parse_bits([BITS.NORTH, 'MSB']), frozenset([BITS.NORTH, BITS.MSB]))