#!/usr/bin/env python

import models

def test_model():
    try:
        if models.session:
            print("session object exists")
    except:
        raise


if __name__ == "__main__":
    test_model()

@@ -23,21 +23,48 @@
 %0Aimport 
-model
+pdb%0Aimport models%0Aimport command
 s%0A%0Adef t
@@ -182,16 +182,346 @@
  raise%0A%0A
+def test_add():%0A    try:%0A        add_keyword = commands.misc.AddKeyword()%0A        values = %7B %22keyword%22: %22Test_add_keyword%22 %7D%0A        add_keyword.run(values)%0A        print(%22new keyword %7B%7D added to __keyword__ table%22.format(%0A                                                            values%5B%22keyword%22%5D))%0A    except:%0A        raise%0A%0A
 %0Aif __na
@@ -557,8 +557,23 @@
 model()%0A
+    test_add()%0A

test add keyword