def test_normalizes_gadget_name_when_string_name_is_given(self): result = normalize_gadget_name('gadget') self.assertEqual(result, 'gadget')
def test_normalizes_gadget_names_when_interger_is_given(self): result = normalize_gadget_name('400') self.assertEqual(type(result), int) self.assertEqual(result, 400)