def test_should_return_value_for_ok_value_with_spaces(self): app_type = ' monasca ' expected = 'monasca' self.assertEqual(expected, aid_service.parse_application_type(app_type))
def test_should_return_none_for_whitespace_filled(self): self.assertIsNone(aid_service.parse_application_type(' '))
def test_should_return_value_for_ok_value(self): app_type = 'monasca' self.assertEqual(app_type, aid_service.parse_application_type(app_type))
def test_should_return_none_for_empty(self): self.assertIsNone(aid_service.parse_application_type(''))