示例#1
0
 def test_isValidCommand_basicValidMessage_True(self):
     """ Now it fails! """
     sut = Message("$$$$ffffffffffffffffkkm000000000000000")
     result = sut.isValidCommand()
     self.assertEqual(result, True)
示例#2
0
 def test_isValidCommand_emptyMessage_False(self):
     sut = Message("")
     result = sut.isValidCommand()
     self.assertEqual(result, False)
示例#3
0
 def test_isValidCommand_randomInvalidMessage_False(self):
     sut = Message("Some random invalid message")
     result = sut.isValidCommand()
     self.assertEqual(result, False)