ranger/orm/tests/unit/rds/sot/test_base_sot.py
Nicholas Jones f28a9d276a Move rds tests to top level folder
Moves unit tests from rds subdirectory to orm/tests folder

Change-Id: I47bd556c7f1b801b618d8f12a624d1fcdf7c6ffe
2017-09-14 10:14:25 -05:00

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()