Changeset 13929


Ignore:
Timestamp:
Nov 1, 2019 11:42:12 AM (11 days ago)
Author:
randersson
Message:

#5819 Updated error message in test in case of failure

File:
1 edited

Legend:

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

    r13600 r13929  
    204204    def test_version(self):
    205205        rlc  = FMUModelME1Extended(Test_FMUModelME1Extended.rlc_circuit)
    206         assert rlc._get_version() == '1.0'
     206        rlc_version = rlc._get_version()
     207        expected = '1.0'
     208        assert rlc_version == expected, "EXPECTED: {}\nACTUAL:{}".format(expected, rlc_version)
    207209
    208210    @testattr(stddist_full = True)
    209211    def test_valid_platforms(self):
    210212        rlc  = FMUModelME1Extended(Test_FMUModelME1Extended.rlc_circuit)
    211         assert rlc._get_types_platform() == 'standard32'
     213        rlc_platform = rlc._get_types_platform()
     214        expected = 'standard32'
     215        assert rlc_platform == expected, "EXPECTED: {}\nACTUAL:{}".format(expected, rlc_platform)
    212216
    213217    @testattr(stddist_full = True)
Note: See TracChangeset for help on using the changeset viewer.