def run_tests(): runner([ SmartyPantsTest, HtmlRenderTest, MarkdownParserTest, MarkdownConformanceTest_10, MarkdownConformanceTest_103, UnicodeTest ])
def run_tests(): runner([ BaseRendererTest, SmartyPantsTest, HtmlRenderTest, MarkdownParserTest, MarkdownBlockCustomRendererTest, MarkdownSpanCustomRendererTest, MarkdownConformanceTest_10, MarkdownConformanceTest_103, UnicodeTest ])
def test_dump(self): self.db.dump('test_dump', callback=self.stop) ok(self.wait()).instance_of(akane.ReplyError) def test_exists(self): self.db.set('test_exists', 'value', callback=self.stop) ok(self.wait()) == 'OK' self.db.exists('test_exists', callback=self.stop) ok(self.wait()) == 1 self.db.exists('test_not_exists', callback=self.stop) ok(self.wait()) == 0 def teardown(self): keys = ( 'test_get_and_set', 'test_delete', 'test_dump', 'test_exists' ) self.db.delete(keys, callback=self.stop) self.wait() if __name__ == '__main__': runner([ ServerCommandsTest ])
self.db.set('test_delete', 'value', callback=self.stop) ok(self.wait()) == 'OK' self.db.delete(('test_delete', ), callback=self.stop) ok(self.wait()) == 1 # Command is not supported in Redis 2.4 def test_dump(self): self.db.dump('test_dump', callback=self.stop) ok(self.wait()).instance_of(akane.ReplyError) def test_exists(self): self.db.set('test_exists', 'value', callback=self.stop) ok(self.wait()) == 'OK' self.db.exists('test_exists', callback=self.stop) ok(self.wait()) == 1 self.db.exists('test_not_exists', callback=self.stop) ok(self.wait()) == 0 def teardown(self): keys = ('test_get_and_set', 'test_delete', 'test_dump', 'test_exists') self.db.delete(keys, callback=self.stop) self.wait() if __name__ == '__main__': runner([ServerCommandsTest])