source: geniuswebcore/test/geniusweb/profileconnection/ProfileConnectionFactoryTest.py@ 81

Last change on this file since 81 was 81, checked in by Bart Vastenhouw, 2 years ago

Added python timedependent parties (conceder, hardliner, etc)

File size: 598 bytes
Line 
1from builtins import BaseException
2import unittest
3
4from tudelft_utilities_logging.Reporter import Reporter
5from uri.uri import URI
6
7from geniusweb.profileconnection.ProfileConnectionFactory import ProfileConnectionFactory
8
9
10class DummyReporter(Reporter):
11 def log(self, level:int, msg:str, thrown:BaseException=None):
12 print(msg)
13
14class FileProfileConnectorTest(unittest.TestCase):
15 def testLoad(self):
16 profint= ProfileConnectionFactory.create(URI("file:test/resources/japantrip1.json"), DummyReporter())
17 self.assertEqual("japantrip1", profint.getProfile().getName())
Note: See TracBrowser for help on using the repository browser.