Exemple #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)
 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)
Exemple #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)
 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)