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