
import AgileCLU
import unittest

class AgileCLUTestCase(unittest.TestCase):
  def setup(self):
    self.agileclu = AgileCLU()
  def test_epwbasekey(self):
    return
  def test_e_pw_hash(self):
    return
  def test_e_pw_dehash(self):
    return

if __name__ == "__main__":
  unittest.main()


import unittest
import AgileCLU

class AgileCLUTestCase(unittest.TestCase):
  def test_epwbasekey(self):
    hash=AgileCLU.epwbasekey('test', 'test', 'test.example.com', '/')
    self.assertEqual(hash, 'AbiDicIBaEuvafIuegJWVP8j')

  def test_e_pw_hash(self):
    hash=AgileCLU.e_pw_hash('teststr', 'test', 'test', 'test.example.com', '/')
    self.assertEqual(hash, 'jyH0M5b9OyM=')

  def test_e_pw_dehash(self):
    hash=AgileCLU.e_pw_dehash('teststr', 'test', 'test', 'test.example.com', '/')
    self.assertEqual(hash, '87654321')

if __name__ == "__main__":
  unittest.main()

Add basic asserts for hashing helper functions.
Add basic asserts for hashing helper functions.

  
+ import unittest
  import AgileCLU
- import unittest
  
  class AgileCLUTestCase(unittest.TestCase):
-   def setup(self):
-     self.agileclu = AgileCLU()
    def test_epwbasekey(self):
-     return
+     hash=AgileCLU.epwbasekey('test', 'test', 'test.example.com', '/')
+     self.assertEqual(hash, 'AbiDicIBaEuvafIuegJWVP8j')
+ 
    def test_e_pw_hash(self):
-     return
+     hash=AgileCLU.e_pw_hash('teststr', 'test', 'test', 'test.example.com', '/')
+     self.assertEqual(hash, 'jyH0M5b9OyM=')
+ 
    def test_e_pw_dehash(self):
-     return
+     hash=AgileCLU.e_pw_dehash('teststr', 'test', 'test', 'test.example.com', '/')
+     self.assertEqual(hash, '87654321')
  
  if __name__ == "__main__":
    unittest.main()
  
Add basic asserts for hashing helper functions.
## Code Before:

import AgileCLU
import unittest

class AgileCLUTestCase(unittest.TestCase):
  def setup(self):
    self.agileclu = AgileCLU()
  def test_epwbasekey(self):
    return
  def test_e_pw_hash(self):
    return
  def test_e_pw_dehash(self):
    return

if __name__ == "__main__":
  unittest.main()

## Instruction:
Add basic asserts for hashing helper functions.
## Code After:

import unittest
import AgileCLU

class AgileCLUTestCase(unittest.TestCase):
  def test_epwbasekey(self):
    hash=AgileCLU.epwbasekey('test', 'test', 'test.example.com', '/')
    self.assertEqual(hash, 'AbiDicIBaEuvafIuegJWVP8j')

  def test_e_pw_hash(self):
    hash=AgileCLU.e_pw_hash('teststr', 'test', 'test', 'test.example.com', '/')
    self.assertEqual(hash, 'jyH0M5b9OyM=')

  def test_e_pw_dehash(self):
    hash=AgileCLU.e_pw_dehash('teststr', 'test', 'test', 'test.example.com', '/')
    self.assertEqual(hash, '87654321')

if __name__ == "__main__":
  unittest.main()
