def test_non_readable_file(self): with self.assertRaises(Error) as cm: readable_file(__class__.NOT_EXISTING_FILE)
def test_readable_file(self): self.assertEqual(__class__.EXISTING_FILE, readable_file(__class__.EXISTING_FILE))
def test_non_readable_file(self): with self.assertRaises(Error) as cm: readable_file(__class__.NOT_EXISTING_FILE)
def test_readable_file(self): self.assertEqual(__class__.EXISTING_FILE, readable_file(__class__.EXISTING_FILE))