Exemple #1
0
 def test_nonintegerCode(self):
     m = error._codeToMessage(b"InvalidCode")
     self.assertEqual(m, None)
Exemple #2
0
 def test_invalidCode(self):
     m = error._codeToMessage(b"987")
     self.assertEqual(m, None)
Exemple #3
0
 def test_validCode(self):
     m = error._codeToMessage(b"302")
     self.assertEqual(m, b"Found")
 def test_nonintegerCode(self):
     m = error._codeToMessage(b"InvalidCode")
     self.assertEqual(m, None)
 def test_invalidCode(self):
     m = error._codeToMessage(b"987")
     self.assertEqual(m, None)
 def test_validCode(self):
     m = error._codeToMessage(b"302")
     self.assertEqual(m, b"Found")