# Path: tests/core.py
# class TestCore(unittest.TestCase):
# 
#     def setUp(self):
#         self.pyrep = PyRep()
#         self.pyrep.launch(path.join(ASSET_DIR, 'test_scene.ttt'), headless=True)
#         self.pyrep.step()
#         self.pyrep.start()
# 
#     def tearDown(self):
#         self.pyrep.stop()
#         self.pyrep.step_ui()
#         self.pyrep.shutdown()
# 
# Path: pyrep/objects/dummy.py
# class Dummy(Object):
#     """A point with orientation.
# 
#     Dummies are multipurpose objects that can have many different applications.
#     """
# 
#     @staticmethod
#     def create(size=0.01) -> 'Dummy':
#         """Creates a dummy object and inserts in the scene.
# 
#         :param size: The size of the dummy object.
#         :return: The newly created Dummy.
#         """
#         handle = sim.simCreateDummy(size, None)
#         return Dummy(handle)
# 
#     def _get_requested_type(self) -> ObjectType:
#         return ObjectType.DUMMY


import unittest
from tests.core import TestCore
from pyrep.objects.dummy import Dummy


class TestDummies(TestCore):

    def test_get_dummy(self):
        Dummy('dummy')

    def test_create_dummy(self):
        d = Dummy.create(0.01)

# Path: tests/core.py
# class TestCore(unittest.TestCase):
# 
#     def setUp(self):
#         self.pyrep = PyRep()
#         self.pyrep.launch(path.join(ASSET_DIR, 'test_scene.ttt'), headless=True)
#         self.pyrep.step()
#         self.pyrep.start()
# 
#     def tearDown(self):
#         self.pyrep.stop()
#         self.pyrep.step_ui()
#         self.pyrep.shutdown()
# 
# Path: pyrep/objects/dummy.py
# class Dummy(Object):
#     """A point with orientation.
# 
#     Dummies are multipurpose objects that can have many different applications.
#     """
# 
#     @staticmethod
#     def create(size=0.01) -> 'Dummy':
#         """Creates a dummy object and inserts in the scene.
# 
#         :param size: The size of the dummy object.
#         :return: The newly created Dummy.
#         """
#         handle = sim.simCreateDummy(size, None)
#         return Dummy(handle)
# 
#     def _get_requested_type(self) -> ObjectType:
#         return ObjectType.DUMMY


# Path: tests/test_dummies.py
import unittest
from tests.core import TestCore
from pyrep.objects.dummy import Dummy



class TestDummies(TestCore):

    def test_get_dummy(self):
        Dummy('dummy')

    def test_create_dummy(self):
        d = Dummy.create(0.01)

        self.assertIsInstance(d, Dummy)