Skip to content

Commit

Permalink
CRAYSAT-1847: Update outdated attributes used in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
annapoorna-s-alt committed Dec 9, 2024
1 parent d0cafd2 commit b0f0941
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_report.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# MIT License
#
# (C) Copyright 2019-2023 Hewlett Packard Enterprise Development LP
# (C) Copyright 2019-2024 Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -313,7 +313,7 @@ def test_get_formatted_report_json(self):

data = json.loads(json_s)
for expected, actual in zip(self.entries, data):
self.assertEquals(expected, list(actual.values()))
self.assertEqual(expected, list(actual.values()))

def test_get_formatted_report_json_with_xnames(self):
"""Json dumps should encode XName datatypes as strings.
Expand All @@ -326,7 +326,7 @@ def test_get_formatted_report_json_with_xnames(self):

json_s = report.get_formatted_report('json')
data = json.loads(json_s)
self.assertEquals(xname_s, data[0][header_s])
self.assertEqual(xname_s, data[0][header_s])

def test_print_report(self):
"""str(report) should depend on the format instance variable.
Expand Down

0 comments on commit b0f0941

Please sign in to comment.