From fbd1710d58c931ec0934bab94ba5fafac050fec1 Mon Sep 17 00:00:00 2001 From: generatedunixname2443911735787003 Date: Mon, 30 Oct 2023 08:07:54 -0700 Subject: [PATCH] [AutoAccept][Codemod][Replace deprecated unittest asserts] fbcode//antlir/compiler/items/tests Reviewed By: vmagro Differential Revision: D50787933 fbshipit-source-id: 6b5bb379b2c51bb2f3acf91603fecb4f02cf8328 --- antlir/compiler/items/tests/test_rpm_action.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/antlir/compiler/items/tests/test_rpm_action.py b/antlir/compiler/items/tests/test_rpm_action.py index b4f3ffccc73..dcd0064d99c 100644 --- a/antlir/compiler/items/tests/test_rpm_action.py +++ b/antlir/compiler/items/tests/test_rpm_action.py @@ -144,7 +144,7 @@ def test_version_override(self) -> None: opts=layer_opts, ) # pyre-fixme[16]: `RpmActionItemTestImpl` has no attribute `assertEquals`. - self.assertEquals( + self.assertEqual( "carrot 1 lockme\n", subvol.path("/rpm_test/carrot.txt").read_text(), ) @@ -188,7 +188,7 @@ def _self_check(): _self_check() # pyre-fixme[16]: `RpmActionItemTestImpl` has no attribute # `assertEquals`. - self.assertEquals( + self.assertEqual( "veggie 1 rc0\n", subvol.path("/rpm_test/veggie.txt").read_text(), ) @@ -217,7 +217,7 @@ def test_version_lock_and_override(self) -> None: opts=layer_opts, ) # pyre-fixme[16]: `RpmActionItemTestImpl` has no attribute `assertEquals`. - self.assertEquals( + self.assertEqual( "carrot 1 lockme\n", subvol.path("/rpm_test/carrot.txt").read_text(), )