Changeset 13951


Ignore:
Timestamp:
Nov 5, 2019 8:21:39 AM (2 weeks ago)
Author:
randersson
Message:

#5819 Updated test to get version through the method get_version and types_platform through the class attribute instead of the method _get...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-5819/Python/src/tests_jmodelica/test_fmi_extended.py

    r13929 r13951  
    204204    def test_version(self):
    205205        rlc  = FMUModelME1Extended(Test_FMUModelME1Extended.rlc_circuit)
    206         rlc_version = rlc._get_version()
     206        # use get_version and not _get_version since it is an internal property
     207        # just for accessing version (which is also deprecated)
     208        rlc_version = rlc.get_version()
    207209        expected = '1.0'
    208210        assert rlc_version == expected, "EXPECTED: {}\nACTUAL:{}".format(expected, rlc_version)
     
    211213    def test_valid_platforms(self):
    212214        rlc  = FMUModelME1Extended(Test_FMUModelME1Extended.rlc_circuit)
    213         rlc_platform = rlc._get_types_platform()
     215        rlc_platform = rlc.types_platform
    214216        expected = 'standard32'
    215         assert rlc_platform == expected, "EXPECTED: {}\nACTUAL:{}".format(expected, rlc_platform)
     217        assert rlc_platform == expected, "EXPECTED: {}\nACTUAL: {}".format(expected, rlc_platform)
    216218
    217219    @testattr(stddist_full = True)
Note: See TracChangeset for help on using the changeset viewer.