How to use the scrython.sets.Code 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 / test_sets.py View on Github external
# This workaround makes sure that we can import from the parent dir
import sys
sys.path.append('..')

from scrython.sets import Code
import unittest
import time

promo_khans = Code('PKTK')

khans = Code('KTK')


class TestSets(unittest.TestCase):

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

    def test_code(self):
        self.assertIsInstance(khans.code(), str)

    def test_mtgo_code(self):
        self.assertIsInstance(khans.mtgo_code(), str)

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

from scrython.sets import Code
import unittest
import time

promo_khans = Code('PKTK')

khans = Code('KTK')


class TestSets(unittest.TestCase):

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

    def test_code(self):
        self.assertIsInstance(khans.code(), str)

    def test_mtgo_code(self):
        self.assertIsInstance(khans.mtgo_code(), str)

    def test_name(self):
        self.assertIsInstance(khans.name(), str)