Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)

src/s/k/skdb-HEAD/tests/test_yamlcrap.py   skdb(Download)
    def test_default(self):
        test = skdb.load('!!python/object:skdb.tag_hack \n tags: "!hello"\n---\n'+'!hello 1234')
        self.assertEqual(type(test), skdb.Dummy)
    def test_scalar_node(self):
        self.init_tags()
        data='!hello 1234'
        test = skdb.load(self.preamble+data)
    def test_run_again(self): #same as above
        self.init_tags()
        data='!hello 1234'
        test = skdb.load(self.preamble+data)
        self.assertEqual(type(test), skdb.Dummy)
            def __init__(self, val): pass
        data='!foo\nbar: 123'
        test = skdb.load(self.preamble+data)
        self.assertEqual(type(test), Foo)
    def test_scalar_attrib(self):
        self.init_tags()
        data='!hello\n test: 1234'
        test = skdb.load(self.preamble+data)