Esempio n. 1
0
 def test__get_script(self, m_open):
     script = lxc._get_script("script.sh")
     self.assertEqual("fake_script", script)
     path = m_open.mock_calls[0][1][0]
     mode = m_open.mock_calls[0][1][1]
     self.assertTrue(path.endswith("rally/deploy/serverprovider/providers"
                                   "/lxc/script.sh"))
     self.assertEqual("rb", mode)
Esempio n. 2
0
 def test__get_script(self, m_open):
     script = lxc._get_script('script.sh')
     self.assertEqual('fake_script', script)
     path = m_open.mock_calls[0][1][0]
     mode = m_open.mock_calls[0][1][1]
     self.assertTrue(path.endswith('rally/deploy/serverprovider/providers'
                                   '/lxc/script.sh'))
     self.assertEqual('rb', mode)
Esempio n. 3
0
 def test__get_script(self, m_open):
     script = lxc._get_script('script.sh')
     self.assertEqual('fake_script', script)
     path = m_open.mock_calls[0][1][0]
     mode = m_open.mock_calls[0][1][1]
     self.assertTrue(path.endswith('rally/deploy/serverprovider/providers'
                                   '/lxc/script.sh'))
     self.assertEqual('rb', mode)
Esempio n. 4
0
 def test__get_script(self, mock_open):
     script = lxc._get_script("script.sh")
     self.assertEqual("fake_script", script)
     path = mock_open.mock_calls[0][1][0]
     mode = mock_open.mock_calls[0][1][1]
     self.assertTrue(
         path.endswith("rally/deploy/serverprovider/providers"
                       "/lxc/script.sh"))
     self.assertEqual("rb", mode)