def test_get_statement_default_params(self): vector = PatternVector(['1', 'X']) expected_statement = ' - 1 X;' self.assertEqual(vector.get_statement(), expected_statement)
def test_get_statement(self): vector = PatternVector(['1', 'X'], 'this is comment', 'opcode', 'timeset0') expected_statement = 'opcode timeset0 1 X; // this is comment' self.assertEqual(vector.get_statement(), expected_statement)