Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def test_input_is_valid(self):
- self.assertFalse(input_data == '')
- def test_number_a_format(self):
- num_a = input_data.split()[0]
- is_valid = False
- if num_a[0] == '-' and num_a[1:].isdigit():
- is_valid = True
- elif num_a.isdigit():
- is_valid = True
- self.assertEqual(is_valid, True)
- def test_number_b_format(self):
- num_b = input_data.split()[0]
- is_valid = False
- if num_b[0] == '-' and num_b[1:].isdigit():
- is_valid = True
- elif num_b.isdigit():
- is_valid = True
- self.assertEqual(is_valid, True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement