示例#1
0
 def test_fields(self):
     base_resource = BaseResolweResource(resolwe=self.resolwe_mock)
     base_resource.WRITABLE_FIELDS = ('writable', )
     base_resource.UPDATE_PROTECTED_FIELDS = ('update_protected', )
     base_resource.READ_ONLY_FIELDS = ('read_only', )
     self.assertEqual(base_resource.fields(),
                      ('read_only', 'update_protected', 'writable'))
示例#2
0
 def test_fields(self):
     base_resource = BaseResolweResource(resolwe=self.resolwe_mock)
     base_resource.WRITABLE_FIELDS = ("writable", )
     base_resource.UPDATE_PROTECTED_FIELDS = ("update_protected", )
     base_resource.READ_ONLY_FIELDS = ("read_only", )
     self.assertEqual(base_resource.fields(),
                      ("read_only", "update_protected", "writable"))
示例#3
0
 def test_fields(self):
     base_resource = BaseResolweResource(resolwe=self.resolwe_mock)
     base_resource.WRITABLE_FIELDS = ('writable', )
     base_resource.UPDATE_PROTECTED_FIELDS = ('update_protected', )
     base_resource.READ_ONLY_FIELDS = ('read_only', )
     self.assertEqual(base_resource.fields(), ('read_only', 'update_protected', 'writable'))