コード例 #1
0
 def test_should_return_value_for_ok_value_with_spaces(self):
     app_type = '  monasca  '
     expected = 'monasca'
     self.assertEqual(expected,
                      common_service.parse_application_type(app_type))
コード例 #2
0
 def test_should_return_none_for_whitespace_filled(self):
     self.assertIsNone(common_service.parse_application_type('    '))
コード例 #3
0
 def test_should_return_value_for_ok_value(self):
     app_type = 'monasca'
     self.assertEqual(app_type,
                      common_service.parse_application_type(app_type))
コード例 #4
0
 def test_should_return_none_for_empty(self):
     self.assertIsNone(common_service.parse_application_type(''))