def test_empty(self): expected = "501 Syntax error\n" response = i.art_id('') return (self.assertEqual(expected, response))
def test_char(self): expected = "511 No such article\n" response = i.art_id('a') return (self.assertEqual(expected, response))
def test_valid_2(self): expected = '''213 desc="Multifilter kek" price=6,99 age\n''' response = i.art_id(59922827) return (self.assertEqual(expected, response))
def test_negative(self): expected = "511 No such article\n" response = i.art_id(-1) return (self.assertEqual(expected, response))
def test_valid_1(self): expected = '''213 desc="Magnezium pezsgotabl" price=4,69\n''' response = i.art_id(20013226) return (self.assertEqual(expected, response))