def_ = util.rev_id()
ne_(abc, def_)
- def test_003_heads(self):
+ def test_003_api_methods_clean(self):
eq_(env.get_heads(), [])
+ eq_(env.get_base(), None)
+
def test_004_rev(self):
script = env.generate_revision(abc, "this is a message", refresh=True)
eq_(script.doc, "this is a message")
os.path.join(env.dir, 'versions', '%s_this_is_a_message.py' % abc), os.F_OK)
assert callable(script.module.upgrade)
eq_(env.get_heads(), [abc])
+ eq_(env.get_base(), abc)
def test_005_nextrev(self):
script = env.generate_revision(def_, "this is the next rev", refresh=True)
assert callable(script.module.upgrade)
assert callable(script.module.downgrade)
eq_(env.get_heads(), [def_])
+ eq_(env.get_base(), abc)
def test_006_from_clean_env(self):
# test the environment so far with a
eq_(abc_rev.revision, abc)
eq_(def_rev.down_revision, abc)
eq_(env.get_heads(), [def_])
+ eq_(env.get_base(), abc)
def test_007_no_refresh(self):
rid = util.rev_id()