def test_blank_source(self):
     self.assertFalse(needs_semicolon(' \t\n'))
 def test_source_without_semicolon(self):
     self.assertTrue(needs_semicolon('x\n'))
 def test_source_with_semicolon(self):
     self.assertFalse(needs_semicolon('x;\n '))
 def test_source_without_semicolon(self):
     self.assertTrue(needs_semicolon('x\n'))
 def test_source_with_semicolon(self):
     self.assertFalse(needs_semicolon('x;\n '))
 def test_blank_source(self):
     self.assertFalse(needs_semicolon(' \t\n'))