Example #1
0
 def testbitStringValid1(self):
     """Tests that the function that returns the valid bits in a set of
     bitstrings behaves correctly when there are no valid bits."""
     result = decoder.bitStringValid(((None, 1), (0, None)))
     self.assertEqual([None, None], result)
Example #2
0
 def testbitStringValid1(self):
     """Tests that the function that returns the valid bits in a set
     of bitStrings behaves correctly when there are no valid bits"""
     result = decoder.bitStringValid(((None, 1), (0, None)))
     self.assertEqual([None, None], result)
Example #3
0
 def testbitStringValid0(self):
     """Tests that the function that returns the valid bits in a set of
     bitstrings behaves correctly."""
     result = decoder.bitStringValid(((1, 1), (0, None)))
     self.assertEqual([1, None], result)
Example #4
0
 def testbitStringValid0(self):
     """Tests that the function that returns the valid bits in a set
     of bitStrings behaves correctly"""
     result = decoder.bitStringValid(((1, 1), (0, None)))
     self.assertEqual([1, None], result)