def test_can_update_filetype(self): file_ = File() file_._filetype = "1xxx" file_.filetype = "2yyy" self.assertEqual(file_._filetype, "2yyy")
def test_code_and_file_file_repr(self): file_ = File() file_._filetype = "abc" file_._code = "ABCD" self.assertEqual(repr(file_), "<ABCD.abc File>")
def test_can_get_filetype(self): file_ = File() file_._filetype = "1xxx" self.assertIs(file_._filetype, file_.filetype)
def test_file_file_repr(self): file_ = File() file_._filetype = "abc" self.assertEqual(repr(file_), "<.abc File>")