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