Code Duplication    Length = 25-25 lines in 2 locations

tests/test_all.py 2 locations

@@ 268-292 (lines=25) @@
265
        assert 1 == data.status.counter
266
        assert data.status.is_running(self.application, self.computer)
267
268
    def test_case_4(self):
269
        """Verify a newly stopped local application is noted."""
270
271
        # Arrange
272
273
        self._store_data()
274
275
        status = self.data.status
276
        status.start(self.application, self.computer)
277
        self.data.status = status
278
        assert 1 == self.data.status.counter
279
280
        self._stop_application()
281
282
        # Act
283
284
        cli.run(self.path)
285
286
        # Assert
287
288
        assert not self._is_application_running()
289
290
        data = self._fetch_data()
291
        assert 2 == data.status.counter
292
        assert not data.status.is_running(self.application, self.computer)
293
294
    def test_case_5(self):
295
        """Verify an already stopped local application is ignored."""
@@ 242-266 (lines=25) @@
239
        assert data.status.is_running(self.application, self.computer)
240
        assert data.status.is_running(self.application, computer)
241
242
    def test_case_3(self):
243
        """Verify an already running local application is ignored."""
244
245
        # Arrange
246
247
        self._store_data()
248
249
        status = self.data.status
250
        status.start(self.application, self.computer)
251
        self.data.status = status
252
        assert 1 == self.data.status.counter
253
254
        self._start_application()
255
256
        # Act
257
258
        cli.run(self.path)
259
260
        # Assert
261
262
        assert self._is_application_running()
263
264
        data = self._fetch_data()
265
        assert 1 == data.status.counter
266
        assert data.status.is_running(self.application, self.computer)
267
268
    def test_case_4(self):
269
        """Verify a newly stopped local application is noted."""