def get(self, base_num): result = json.dumps(compute_sequence(base_num)) return result
def test_sequence(self): result = compute_sequence(0) self.assertEqual(result, [0, 1])
def test_sequence_string_input(self): result = compute_sequence('1') self.assertEqual(result, [0, 1])