def test():
	dbcli = getCliInstance()
	# dbcli.insertDomain('jaysonhwang.com')
	# dbcli.insertRuleset('test','jaysonhwang.com')
	print dbcli.robotsrulesetOfDomain('www.zol.com')
	print dbcli.robotsrulesetOfDomain('jayson.com')
	dbcli.showAll()
	dbcli.close()
def test_can_encode_relationship(self):
        a = Node(name="Alice")
        b = Node(name="Bob")
        ab = KNOWS(a, b)
        encoded = cypher_repr(ab, related_node_template="{property.name}")
        self.assertEqual("(Alice)-[:KNOWS {}]->(Bob)", encoded)