How to use the scrython.bulk_data.BulkData function in scrython

To help you get started, we’ve selected a few scrython examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NandaScott / Scrython / unittests / TestBulk.py View on Github external
# This workaround makes sure that we can import from the parent dir
import sys
sys.path.append('..')

from scrython.bulk_data import BulkData
import unittest
import time

bulk = BulkData()

class TestBulk(unittest.TestCase):

    def test_object(self):
        self.assertIsInstance(bulk.object(), str)

    def test_has_more(self):
        self.assertIsInstance(bulk.has_more(), bool)

    def test_data(self):
        self.assertIsInstance(bulk.data(), list)

    def test_bulk_object(self):
        self.assertIsInstance(bulk.bulk_object(0), str)

    def test_bulk_id(self):