
Moves unit tests from rds subdirectory to orm/tests folder Change-Id: I47bd556c7f1b801b618d8f12a624d1fcdf7c6ffe
19 lines
629 B
Python
19 lines
629 B
Python
import unittest
|
|
|
|
from orm.services.resource_distributor.rds.sot.base_sot import BaseSoT
|
|
|
|
|
|
class BaseSoTTests(unittest.TestCase):
|
|
|
|
def test_base_sot_no_method_save_implemented(self):
|
|
""" Check if creating an instance and calling save method fail"""
|
|
with self.assertRaises(Exception):
|
|
sot = BaseSoT()
|
|
sot.save_resource_to_sot('1', '2', [])
|
|
|
|
def test_base_sot_no_method_validate_implemented(self):
|
|
""" Check if creating an instance and calling validate method fail"""
|
|
with self.assertRaises(Exception):
|
|
sot = BaseSoT()
|
|
sot.validate_sot_state()
|