コード例 #1
0
ファイル: tests.py プロジェクト: rysdyk/avocado
    def test_register(self):
        history.register(DataContext, fields=['name', 'description', 'json'])
        self.assertTrue(DataContext in history.registry)
        self.assertEqual(history.registry[DataContext], {
            'fields': ('json', 'name', 'description'),
            'dispatch_uid': 'DataContext_revision',
        })

        history.unregister(DataContext)
        self.assertFalse(DataContext in history.registry)
コード例 #2
0
ファイル: tests.py プロジェクト: chop-dbhi/avocado
    def test_register(self):
        history.register(DataContext, fields=["name", "description", "json"])
        self.assertTrue(DataContext in history.registry)
        self.assertEqual(
            history.registry[DataContext],
            {"fields": ("json", "name", "description"), "dispatch_uid": "DataContext_revision"},
        )

        history.unregister(DataContext)
        self.assertFalse(DataContext in history.registry)
コード例 #3
0
ファイル: tests.py プロジェクト: hassanNS/avocado
    def test_register(self):
        history.register(DataContext, fields=['name', 'description', 'json'])
        self.assertTrue(DataContext in history.registry)
        self.assertEqual(history.registry[DataContext], {
            'fields': ('json', 'name', 'description'),
            'dispatch_uid': 'DataContext_revision',
        })

        history.unregister(DataContext)
        self.assertFalse(DataContext in history.registry)
コード例 #4
0
 def tearDown(self):
     history.unregister(DataContext)
コード例 #5
0
ファイル: tests.py プロジェクト: chop-dbhi/avocado
 def tearDown(self):
     history.unregister(DataContext)