def test_multiline_statement(self): self.assertFalse(autoflake.multiline_statement('x = foo()')) self.assertTrue(autoflake.multiline_statement('x = 1;')) self.assertTrue(autoflake.multiline_statement('import os, \\')) self.assertTrue(autoflake.multiline_statement('foo(')) self.assertTrue( autoflake.multiline_statement('1', previous_line='x = \\'))
def test_multiline_statement(self): self.assertFalse(autoflake.multiline_statement('x = foo()')) self.assertTrue(autoflake.multiline_statement('x = 1;')) self.assertTrue(autoflake.multiline_statement('import os, \\')) self.assertTrue(autoflake.multiline_statement('foo(')) self.assertTrue(autoflake.multiline_statement('1', previous_line='x = \\'))