summaryrefslogtreecommitdiff
path: root/test/test_hardcore_schema_manipulation.py
diff options
context:
space:
mode:
authornitromaster101@gmail.com <nitromaster101@gmail.com@5914aa95-5b3a-0410-a3b5-7b719e7fe9b2>2009-07-22 18:45:54 +0000
committernitromaster101@gmail.com <nitromaster101@gmail.com@5914aa95-5b3a-0410-a3b5-7b719e7fe9b2>2009-07-22 18:45:54 +0000
commitbc7d69f0956d1a66ffc9d3f4b645f6419e847331 (patch)
treea3b99784e9c3016b972e13bba07c90128fd6de32 /test/test_hardcore_schema_manipulation.py
parent605b7096f3fbbe7cf000d7464e480d66fee3aa42 (diff)
cleanup, incorporate changes from code review, and move merge and split stuff into freebase.experimental
git-svn-id: http://freebase-python.googlecode.com/svn/trunk@201 5914aa95-5b3a-0410-a3b5-7b719e7fe9b2
Diffstat (limited to 'test/test_hardcore_schema_manipulation.py')
-rw-r--r--test/test_hardcore_schema_manipulation.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/test_hardcore_schema_manipulation.py b/test/test_hardcore_schema_manipulation.py
index aaecf28..e078a4d 100644
--- a/test/test_hardcore_schema_manipulation.py
+++ b/test/test_hardcore_schema_manipulation.py
@@ -69,9 +69,15 @@ class TestHardcoreSchemaManipulation(unittest.TestCase):
self.assertEqual([ignore_base(prop_id) for prop_id in realproperties], [ignore_base(prop_id) for prop_id in newproperties])
# - check the properties and type's attributes are the same
+ # TODO
+ def test_restore_over_restore(self):
+ domain_id = _create_domain()
+ graph = dump_domain(s, "/base/contractbridge")
+ restore(s, graph, domain_id)
-
+ # now we restore again... it should raise a MetawebError
+ self.assertRaises(MetawebError, restore(s, graph, domain_id))
def test_try_copying_a_cvt(self):