import unittest
from ortec.scientific.benchmarks.loadbuilding.solution.ThreeDbox           import ThreeDbox
from ortec.scientific.benchmarks.loadbuilding.solution.ThreeDloadingspace  import ThreeDloadingspace

class TestBox(unittest.TestCase):
    def setUp(self):
        self.box = ThreeDbox()
        self.box.id = 1
        self.box.kindid = 1
        self.box.loadingspace = ThreeDloadingspace()
        self.box.loadingspace.id = 1
        self.box.loadingspace.placements = []
        
    def test_box_valid(self):
        self.assertTrue(self.box.IsValid()[0])

    def test_box_invalid_id1(self):
        self.box.id = None
        self.assertFalse(self.box.IsValid()[0])
    def test_box_invalid_id2(self):
        self.box.id = "1"
        self.assertFalse(self.box.IsValid()[0])

    def test_box_invalid_kindid1(self):
        self.box.kindid = None
        self.assertFalse(self.box.IsValid()[0])
    def test_box_invalid_kindid2(self):
        self.box.kindid = "1"
        self.assertFalse(self.box.IsValid()[0])

    def test_box_invalid_loadingspace(self):
        self.box.loadingspace = None
        self.assertFalse(self.box.IsValid()[0])
    
    def test_box_typestring(self):
        self.assertEqual(self.box.TypeString(), "box")
        
    def test_box_ne(self):
        self.assertNotEqual(self.box, ThreeDbox())

TestCase = unittest.TestSuite()
TestCase.addTest(unittest.TestLoader().loadTestsFromTestCase(TestBox))
02a6cb4b341ed31376b3bda1d4b4dc777277d4c7
<mask token>


class TestBox(unittest.TestCase):

    def setUp(self):
        self.box = ThreeDbox()
        self.box.id = 1
        self.box.kindid = 1
        self.box.loadingspace = ThreeDloadingspace()
        self.box.loadingspace.id = 1
        self.box.loadingspace.placements = []
    <mask token>

    def test_box_invalid_id1(self):
        self.box.id = None
        self.assertFalse(self.box.IsValid()[0])

    def test_box_invalid_id2(self):
        self.box.id = '1'
        self.assertFalse(self.box.IsValid()[0])
    <mask token>

    def test_box_invalid_kindid2(self):
        self.box.kindid = '1'
        self.assertFalse(self.box.IsValid()[0])

    def test_box_invalid_loadingspace(self):
        self.box.loadingspace = None
        self.assertFalse(self.box.IsValid()[0])
    <mask token>
    <mask token>


<mask token>

<mask token>


class TestBox(unittest.TestCase):

    def setUp(self):
        self.box = ThreeDbox()
        self.box.id = 1
        self.box.kindid = 1
        self.box.loadingspace = ThreeDloadingspace()
        self.box.loadingspace.id = 1
        self.box.loadingspace.placements = []

    def test_box_valid(self):
        self.assertTrue(self.box.IsValid()[0])

    def test_box_invalid_id1(self):
        self.box.id = None
        self.assertFalse(self.box.IsValid()[0])

    def test_box_invalid_id2(self):
        self.box.id = '1'
        self.assertFalse(self.box.IsValid()[0])

    def test_box_invalid_kindid1(self):
        self.box.kindid = None
        self.assertFalse(self.box.IsValid()[0])

    def test_box_invalid_kindid2(self):
        self.box.kindid = '1'
        self.assertFalse(self.box.IsValid()[0])

    def test_box_invalid_loadingspace(self):
        self.box.loadingspace = None
        self.assertFalse(self.box.IsValid()[0])
    <mask token>

    def test_box_ne(self):
        self.assertNotEqual(self.box, ThreeDbox())


<mask token>

<mask token>


class TestBox(unittest.TestCase):

    def setUp(self):
        self.box = ThreeDbox()
        self.box.id = 1
        self.box.kindid = 1
        self.box.loadingspace = ThreeDloadingspace()
        self.box.loadingspace.id = 1
        self.box.loadingspace.placements = []

    def test_box_valid(self):
        self.assertTrue(self.box.IsValid()[0])

    def test_box_invalid_id1(self):
        self.box.id = None
        self.assertFalse(self.box.IsValid()[0])

    def test_box_invalid_id2(self):
        self.box.id = '1'
        self.assertFalse(self.box.IsValid()[0])

    def test_box_invalid_kindid1(self):
        self.box.kindid = None
        self.assertFalse(self.box.IsValid()[0])

    def test_box_invalid_kindid2(self):
        self.box.kindid = '1'
        self.assertFalse(self.box.IsValid()[0])

    def test_box_invalid_loadingspace(self):
        self.box.loadingspace = None
        self.assertFalse(self.box.IsValid()[0])

    def test_box_typestring(self):
        self.assertEqual(self.box.TypeString(), 'box')

    def test_box_ne(self):
        self.assertNotEqual(self.box, ThreeDbox())


<mask token>
TestCase.addTest(unittest.TestLoader().loadTestsFromTestCase(TestBox))

import unittest
from ortec.scientific.benchmarks.loadbuilding.solution.ThreeDbox import ThreeDbox
from ortec.scientific.benchmarks.loadbuilding.solution.ThreeDloadingspace import ThreeDloadingspace


class TestBox(unittest.TestCase):

    def setUp(self):
        self.box = ThreeDbox()
        self.box.id = 1
        self.box.kindid = 1
        self.box.loadingspace = ThreeDloadingspace()
        self.box.loadingspace.id = 1
        self.box.loadingspace.placements = []

    def test_box_valid(self):
        self.assertTrue(self.box.IsValid()[0])

    def test_box_invalid_id1(self):
        self.box.id = None
        self.assertFalse(self.box.IsValid()[0])

    def test_box_invalid_id2(self):
        self.box.id = '1'
        self.assertFalse(self.box.IsValid()[0])

    def test_box_invalid_kindid1(self):
        self.box.kindid = None
        self.assertFalse(self.box.IsValid()[0])

    def test_box_invalid_kindid2(self):
        self.box.kindid = '1'
        self.assertFalse(self.box.IsValid()[0])

    def test_box_invalid_loadingspace(self):
        self.box.loadingspace = None
        self.assertFalse(self.box.IsValid()[0])

    def test_box_typestring(self):
        self.assertEqual(self.box.TypeString(), 'box')

    def test_box_ne(self):
        self.assertNotEqual(self.box, ThreeDbox())


TestCase = unittest.TestSuite()
TestCase.addTest(unittest.TestLoader().loadTestsFromTestCase(TestBox))

import unittest
from ortec.scientific.benchmarks.loadbuilding.solution.ThreeDbox           import ThreeDbox
from ortec.scientific.benchmarks.loadbuilding.solution.ThreeDloadingspace  import ThreeDloadingspace

class TestBox(unittest.TestCase):
    def setUp(self):
        self.box = ThreeDbox()
        self.box.id = 1
        self.box.kindid = 1
        self.box.loadingspace = ThreeDloadingspace()
        self.box.loadingspace.id = 1
        self.box.loadingspace.placements = []
        
    def test_box_valid(self):
        self.assertTrue(self.box.IsValid()[0])

    def test_box_invalid_id1(self):
        self.box.id = None
        self.assertFalse(self.box.IsValid()[0])
    def test_box_invalid_id2(self):
        self.box.id = "1"
        self.assertFalse(self.box.IsValid()[0])

    def test_box_invalid_kindid1(self):
        self.box.kindid = None
        self.assertFalse(self.box.IsValid()[0])
    def test_box_invalid_kindid2(self):
        self.box.kindid = "1"
        self.assertFalse(self.box.IsValid()[0])

    def test_box_invalid_loadingspace(self):
        self.box.loadingspace = None
        self.assertFalse(self.box.IsValid()[0])
    
    def test_box_typestring(self):
        self.assertEqual(self.box.TypeString(), "box")
        
    def test_box_ne(self):
        self.assertNotEqual(self.box, ThreeDbox())

TestCase = unittest.TestSuite()
TestCase.addTest(unittest.TestLoader().loadTestsFromTestCase(TestBox))