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/i/ninjabot-HEAD/tests/test_plugin_utils.py   ninjabot(Download)
from common import ROOT, NinjabotTestCase
 
import os
import unittest
from unittest.mock import MagicMock, patch
    def setUp(self):
        import ninjabot
 
        self.bot = ninjabot.Ninjabot(
            os.path.join(ROOT, '.ninjabot_config'),

src/n/i/ninjabot-HEAD/tests/test_api_utils.py   ninjabot(Download)
from common import ROOT, NinjabotTestCase
import os
import unittest
from unittest.mock import MagicMock
 
    def setUp(self):
        import ninjabot
        self.bot = ninjabot.Ninjabot(
            os.path.join(ROOT, '.ninjabot_config'),
            test_mode=True