Пример #1
0
 def test_three(self):
     reason = 'gprs_usage: 0 bytes uploaded, 0 bytes downloaded'
     expected = (0, 0)
     self.assertEqual(expected, parse_usage_event.parse_gprs_reason(reason))
Пример #2
0
 def test_empty_reason(self):
     """There was an event with an empty reason, for some reason.."""
     reason = ''
     expected = (0, 0)
     self.assertEqual(expected, parse_usage_event.parse_gprs_reason(reason))
Пример #3
0
 def test_two(self):
     reason = 'gprs_usage: 3730 bytes uploaded, 22107 bytes downloaded'
     expected = (3730, 22107)
     self.assertEqual(expected, parse_usage_event.parse_gprs_reason(reason))