Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(2) | Call(0) | Derive(0) | Import(2)
str(object='') -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.
src/n/a/narwal-HEAD/tests/test_things.py narwal(Download)
from narwal.things import * from .common import TEST_AGENT
def setup(self): self.reddit = Reddit(user_agent=TEST_AGENT) def test(self): b = Blob(self.reddit)
def setup(self): self.reddit = Reddit(user_agent=TEST_AGENT) def test(self): lb = ListBlob(self.reddit)
def setup(self): self.reddit = Reddit(user_agent=TEST_AGENT) def test(self): t = Thing(self.reddit)
def setup(self): self.reddit = Reddit(user_agent=TEST_AGENT) def test(self): t = Created(self.reddit)
src/n/a/narwal-HEAD/tests/test_reddit.py narwal(Download)
from narwal import things from .common import TEST_AGENT, genstr
def setup(self): self.reddit = Reddit(user_agent=TEST_AGENT, respect=False) ''' # if we run this test too many times, reddit blocks us, so i'm leaving it
def setup(self): self.reddit = Reddit(user_agent=TEST_AGENT, respect=False) def test(self): eq_(self.reddit.logged_in, False)
def test_normal(self): r = Reddit(user_agent=TEST_AGENT) eq_(r._respect, True) eq_(r._user_agent, TEST_AGENT)