Exemplo n.º 1
0
  def test_01_groupFilesByTarget(self):

    # empty input
    self.assertTrue(groupFilesByTarget([])['Value'] == {})

    res = groupFilesByTarget(self.allFiles)

    self.assertTrue(res['OK'])

    groups = res['Value']

    self.assertTrue(self.f1 in groups['target1'])
    self.assertTrue(self.f2 in groups['target2'])
    self.assertTrue(self.f3 in groups['target1'])
    self.assertTrue(self.f4 in groups['target3'])
Exemplo n.º 2
0
    def test_01_groupFilesByTarget(self):

        # empty input
        self.assertTrue(groupFilesByTarget([])['Value'] == {})

        res = groupFilesByTarget(self.allFiles)

        self.assertTrue(res['OK'])

        groups = res['Value']

        self.assertTrue(self.f1 in groups['target1'])
        self.assertTrue(self.f2 in groups['target2'])
        self.assertTrue(self.f3 in groups['target1'])
        self.assertTrue(self.f4 in groups['target3'])
Exemplo n.º 3
0
    def test_01_groupFilesByTarget(self):

        # empty input
        self.assertTrue(groupFilesByTarget([])["Value"] == {})

        res = groupFilesByTarget(self.allFiles)

        self.assertTrue(res["OK"])

        groups = res["Value"]

        self.assertTrue(self.f1 in groups["target1"])
        self.assertTrue(self.f2 in groups["target2"])
        self.assertTrue(self.f3 in groups["target1"])
        self.assertTrue(self.f4 in groups["target3"])